const serveUrlMap = {
  ZSM: '/apizsm/',
  zsm: 'https://zsm.sousoushenbian.com/',
  SOU: '/apisou/',
  sou: 'https://test.sousoushenbian.com/',
  BC: '/apibc/',
  bc: 'https://testbc.sousoushenbian.com/',
  SM: '/apism/',
  sm: 'https://service.sousoushenghuo.com/',
  SS: '/apiss/',
  ss: 'https://test.shangshangkeji.com/'
};

export default {
  dev: {
    [serveUrlMap['ZSM']]: {
      target: serveUrlMap['zsm'],
      changeOrigin: true,
      pathRewrite: {
        [serveUrlMap['ZSM']]: '',
      },
    },
    [serveUrlMap['SOU']]: {
      target: serveUrlMap['sou'],
      changeOrigin: true,
      pathRewrite: {
        [serveUrlMap['SOU']]: '',
      },
    },
    [serveUrlMap['BC']]: {
      target: serveUrlMap['bc'],
      changeOrigin: true,
      pathRewrite: {
        [serveUrlMap['BC']]: '',
      },
    },
    [serveUrlMap['SM']]: {
      target: serveUrlMap['sm'],
      changeOrigin: true,
      pathRewrite: {
        [serveUrlMap['SM']]: '',
      },
    },
    [serveUrlMap['SS']]: {
      target: serveUrlMap['ss'],
      changeOrigin: true,
      pathRewrite: {
        [serveUrlMap['SS']]: '',
      },
    },
  }
};